package com.kingwang.training.designpattern.visitor.deep.step4;

/**
 * @author King
 */
public class SimpleAttackVisitor implements Visitor {
    private int meters;

    public SimpleAttackVisitor(int meters) {
        this.meters = meters;
    }

    @Override
    public void visit(MarineSoldier marine) {
        System.out.println("MOVE " + this.meters + " meters!");
        System.out.println("Machine GUN! dadadadadadada...");
    }

    @Override
    public void visit(FirebatSoldier firebat) {
        System.out.println("MOVE " + this.meters + " meters!");
        System.out.println("FIRE!!!");
    }

    @Override
    public void visit(Medic medic) {
        System.out.println("MOVE " + this.meters + " meters!");
    }
}
